package com.edfu.core.ams.persistence.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.edfu.core.coursemgt.persistence.entity.RoomEntity;

@Entity
@Table(name="slot_type")
public class TimeSlotRoomMappingEntity implements IAttendanceMgtEntity {
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private long id;
	
	@ManyToOne
	@JoinColumn(name = "slot_id", nullable = false)
	private TimeSlotEntity timeSlot;
	
	@ManyToOne
	@JoinColumn(name = "timetable_id", nullable = false)
	private TimetableEntity timeTable;
	
	private String day;
	
	@ManyToOne
	@JoinColumn(name = "room_id", nullable = false)
	private RoomEntity room;

	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}

	public TimeSlotEntity getTimeSlot() {
		return timeSlot;
	}
	public void setTimeSlot(TimeSlotEntity timeSlot) {
		this.timeSlot = timeSlot;
	}

	public TimetableEntity getTimeTable() {
		return timeTable;
	}
	public void setTimeTable(TimetableEntity timeTable) {
		this.timeTable = timeTable;
	}

	public String getDay() {
		return day;
	}
	public void setDay(String day) {
		this.day = day;
	}

	public RoomEntity getRoom() {
		return room;
	}
	public void setRoom(RoomEntity room) {
		this.room = room;
	}	

}
